<nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="collapse navbar-collapse col-2"></div>
        <div class="collapse navbar-collapse col-8">
            <span class="navbar-brand">用户管理系统</span>
        </div>
        
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            {{if user}}
            <div class="form-inline my-2 my-lg-0">
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            个人信息
                        </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <span class="dropdown-item">用户名: {{user.nickName}}</a>
                        <a class="dropdown-item" href="#">设置</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/signout">退出</a>
                    </div>
                    </li>    
                </ul>
            </div>
            {{else}}
            <div class="collapse navbar-collapse col-3">
                <a href="/login">
                    <button type="button" class="btn btn-primary clo-2">登录</button>
                </a>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="/register">
                    <button type="button" class="btn btn-success">注册</button>
                </a>
            </div>

            {{/if}}
           
        </div>
    </div>
</nav>